* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: $scale;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--surface-ground);
    margin: 0;
    padding: 0;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}


// NEW TESTING STYLING

.layout-root {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;

    @media (max-width: 991px) {
        &.layout-static {
            .layout-sidebar {
                transform: translateX(-100%);
                z-index: 100;
            }
            
            .p-button-inverted {
                display: none;
            }

            .p-button-mobile-only {
                display: flex;
            }

            .layout-content {
                margin-left: -200px;
            }

            &.layout-mobile-active {
                .layout-sidebar {
                    transform: translateX(0%);
                }

                .p-button-inverted {
                    display: flex;
                }

                .p-button-mobile-only {
                    display: none;
                }
            }

        }
    }

  // For desktop (min-width: 992px)
  @media (min-width: 992px) {
        &.layout-static.layout-static-inactive {
            .layout-sidebar {
                transform: translateX(-100%);
                left: 0;
            }

            .layout-content {
                margin-left: -200px;
                transition: margin-left $transitionDuration;
            }

            .p-button-inverted {
                display: none;
            }

            .p-button-mobile-only {
                display: flex;
            }
        }
    }
}

.layout-root.ap-mode {
    // cancel all sidebar/content shifting
    .layout-sidebar {
        transform: none !important;
    }

    .layout-content {
        margin-left: 0 !important;
    }

    .p-button-inverted,
    .p-button-mobile-only {
        display: none !important;
    }
}
